/**
 * Created by Wayne
 * user Model
 */


const  mongoose = require('mongoose'),
    shortid = require('shortid'),
    Schema = mongoose.Schema;

let developerSchema = new Schema({
    _id: {
        type: String,
        'default': shortid.generate
    },
    name:String,//账号名称
    pwd:String,//账号密码
    devices:String,//设备数量
    status: String,
    register_time:{
        type: Date,
        "default": Date.now
    }
});

let developer = mongoose.model('developer', developerSchema);

module.exports = developer;
